package com.java.huxb.day06.utils;

import com.java.huxb.day06.entity.Student;
import com.java.huxb.day06.entity.SysUser;
import com.java.huxb.day06.entity.Teacher;

import java.util.ArrayList;
import java.util.List;

/**
 * @author huxb
 * @date 2020/4/4 0004 下午 2:46
 */
public class Utils {

    public static List<SysUser> getSysUserList() {
        List<SysUser> userList = new ArrayList<>(20);
        for (int i = 0; i < 20; i++) {
            if (i < 10) {
                userList.add(new SysUser(String.valueOf(i), "UserName" + i));
            } else {
                userList.add(new SysUser(String.valueOf(i), "UserName" + i));
            }
        }
        return userList;
    }

    public static List<Student> getStudentList() {
        List<Student> studentList = new ArrayList<>(20);
        for (int i = 5; i < 15; i++) {
            studentList.add(new Student(String.valueOf(i), "Student" + i));
        }
        return studentList;
    }

    public static List<Teacher> getTeacherList() {
        List<Teacher> teacherList = new ArrayList<>(20);
        for (int i = 1; i < 5; i++) {
            teacherList.add(new Teacher(String.valueOf(i), "Teacher" + i, 20, "teacher"));
        }
        return teacherList;
    }

}
